package com.woniuxy02;

import java.util.Arrays;

public class Test04 {
    public static void main(String[] args) {
//        StringBuilder sb=new StringBuilder("abc");
//        System.out.println(sb);
//        sb.append("def");
//        sb.append("xyz");
//        System.out.println(sb);

        //String和StringBulider不是兼容类型
        String str="aaa";
        StringBuilder sb=new StringBuilder("aaa");
        String str1=sb.toString();
        StringBuilder sb1=new StringBuilder(str);

        System.out.println(Arrays.toString(new int[]{1, 2, 3}));

        StringBuffer stringBuffer1=new StringBuffer();
        stringBuffer1.append("aaa");
        stringBuffer1.append("bbb");
        stringBuffer1.append("ccc");
        System.out.println(stringBuffer1);
    }

}
